package com.chilly.db1.service;

import com.chilly.bean.Person;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * Created by Chilly Cui on 2020/11/16.
 */
@Service
@Validated
public class PersonService {
    public void validatePerson(@Valid Person person){
        // do something
    }
}
